//
//  L9Hellper.h
//  Lesson109
//
//  Created by 徐盟 on 2023/3/6.
//

#import <Foundation/Foundation.h>
#import "UIColor+XM.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMHelper : NSObject

+(UIColor *) randomColor;
+ (CGSize) sizeWIthText:(NSString*) text maxSize:(CGSize) maxSize fontSize:(int) fontSize;
+ (NSString *)intToBinary:(int)intValue;
+(NSString *)byteArrToBinnaryStr:(Byte *)data length:(int)length;
+ (NSString *)stringFromHexString:(NSString *)hexString;
+ (NSString *)hexStringFromString:(NSString *)string;
+ (NSString *)hexStringFromData:(NSData *)data;
+ (NSString *)stringFromData:(NSData *)data;
@end

NS_ASSUME_NONNULL_END
